import PaginationDto from "apps/admin/src/dto/pagination.dto";
import { IsInt, IsOptional, IsString, Max, Min } from "class-validator";

export default class PageDto extends PaginationDto {
    @IsString()
    @IsOptional()
    name:string;

    @IsString()
    @IsOptional()
    id:string;

    @Min(0)
    @IsInt()
    @IsOptional()
    merchantId:number

    @Min(0)
    @IsInt()
    @IsOptional()
    deviceTypeId:number

    @Max(1)
    @Min(0)
    @IsInt()
    @IsOptional()
    connectStatus:0|1
}